<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<link rel="shirtcut icon" href="#">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="shirtcut icon" href="#">
</head>
<body>
<h1>index</h1>
<div th:if="${session.account != null}">
    <span th:text="${session.account.username}+'欢迎回来!'"></span><a href="/logout">退出</a>
</div>
    <a href="/main">main</a>
<div shiro:hasPermission="manage">
    <a href="/manage">manage</a><br>
</div>
<div shiro:hasRole="administrator">
    <a href="/administator">administator</a><br>
</div>
</body>
</html>